{% extends 'TopxiaWebBundle:Group:layout.html.twig' %}
{% set script_controller = 'group/group_member' %}
{% block title %}{{groupinfo.title}}{{'小组'|trans}} - {{ parent() }}{% endblock %}

{% block group_body %}
  <div class="panel panel-default">
    <div class="panel-heading">
      <h2 class="panel-title">{{'话题搜索'|trans}}</h2>
      <form  class="form-inline more hidden-xs" style="top:7px" action="{{path('group_search',{id:groupinfo.id})}}" method="get">
        <div class="search-with-btn search-sm">
          <input type="hidden" name="_csrf_token" value="{{ csrf_token('site') }}">
          <input type="text" class="form-control" placeholder="{{'组内搜索'|trans}}" name="keyWord" value="{{keyWord|default('')}}">
          <button class="btn btn-default" type="submit"><span class="glyphicon glyphicon-search"></span></button>
        </div>
      </form>
    </div>

    <div class="panel-body">
      <div class="row">
        <div class="col-md-8">
          {% include 'TopxiaWebBundle:Group:groups-threads-ul.html.twig' with {
          'threads':threads,
          'users':owner,
          'lastPostMembers':lastPostMembers,}
          %}
          <div class="text-center">
            {{ web_macro.paginator(paginator) }}
          </div>
        </div>
      </div>
    </div>
  </div>

{% endblock %}
